package com.borball.store.dao;

import static org.junit.Assert.fail;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.junit.Test;

import com.borball.store.domain.ProductAmount;

public class OrderDAOTest {

	@Test
	public void testOrderByAmount() {
		OrderDAO dao = new OrderDAO();
		Map map = new HashMap();
		map.put("start", "2011-07-20");
		
		List<ProductAmount> list = dao.orderByAmount(map);

		System.out.println(list.size());
		for (ProductAmount productAmount : list) {
			System.out.println(productAmount.getName() + ":" + productAmount.getAmount());
		}
	}

}
